package com.dhcc.bpm.modules.safe.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dhcc.bpm.modules.safe.entity.ApiControl;
import com.dhcc.bpm.modules.safe.vo.ApiControlVO;

/**
 * @ClassName IApiControlService
 * @Description 访问控制API关联表 服务类
 * @Author daina
 * @Date 2020/2/21 14:16
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 */
public interface IApiControlService extends IService<ApiControl> {

    /**
     * @Description 自定义分页
     * @Author daina
     * @Date 15:13 2020/3/26
     * @param page
     * @param apiControl
     * @return com.baomidou.mybatisplus.core.metadata.IPage<com.dhcc.bpm.modules.safe.vo.ApiControlVO>
     **/
    IPage<ApiControlVO> selectApiControlPage(IPage<ApiControlVO> page, ApiControlVO apiControl);

    /**
     * @Description 批量删除api关联
     * @Author daina
     * @Date 15:13 2020/3/26
     * @param opcControlId
     * @param ids
     * @return int
     **/
    int deleteApis(Long opcControlId, String ids);

    /**
     * @Description 批量选择api
     * @Author daina
     * @Date 15:12 2020/3/26
     * @param opcControlId
     * @param ids
     * @return java.lang.Boolean
     **/
    Boolean batchControllerApi(Long opcControlId, String ids);
}
